<template>
  <nm-form-dialog ref="form" v-bind="form" v-on="on" :visible.sync="visible_">
    <el-row>
      <el-col :span="20" :offset="1">
        <el-form-item label="日期：" prop="bus_date">
          <el-input v-model="form.model.bus_date" clearable />
        </el-form-item>
        <el-form-item label="班次号：" prop="bus_id">
          <el-input v-model="form.model.bus_id" clearable />
        </el-form-item>
        <el-form-item label="所属车站：" prop="station_id">
          <el-input v-model="form.model.station_id" clearable />
        </el-form-item>
        <el-form-item label="线路：" prop="route_id">
          <el-input v-model="form.model.route_id" clearable />
        </el-form-item>
        <el-form-item label="营运类别：" prop="work_type">
          <el-input v-model="form.model.work_type" clearable />
        </el-form-item>
        <el-form-item label="营运方式：" prop="work_way">
          <el-input v-model="form.model.work_way" clearable />
        </el-form-item>
        <el-form-item label="区域类别：" prop="district_type">
          <el-input v-model="form.model.district_type" clearable />
        </el-form-item>
        <el-form-item label="车次类型：" prop="bus_type">
          <el-input v-model="form.model.bus_type" clearable />
        </el-form-item>
        <el-form-item label="发车时间：" prop="start_time">
          <el-input v-model="form.model.start_time" clearable />
        </el-form-item>
        <el-form-item label="检票口：" prop="check_gate">
          <el-input v-model="form.model.check_gate" clearable />
        </el-form-item>
        <el-form-item label="发车位：" prop="parking_space">
          <el-input v-model="form.model.parking_space" clearable />
        </el-form-item>
        <el-form-item label="候车厅：" prop="waitting_room">
          <el-input v-model="form.model.waitting_room" clearable />
        </el-form-item>
        <el-form-item label="滚动车辆循环时间：" prop="scrollbus_check_time">
          <el-input v-model="form.model.scrollbus_check_time" clearable />
        </el-form-item>
        <el-form-item label="车辆编号：" prop="vehicle_id">
          <el-input v-model="form.model.vehicle_id" clearable />
        </el-form-item>
        <el-form-item label="车属公司：" prop="transport_company_id">
          <el-input v-model="form.model.transport_company_id" clearable />
        </el-form-item>
        <el-form-item label="是否本站专属车次：" prop="is_proprietary">
          <el-input v-model="form.model.is_proprietary" clearable />
        </el-form-item>
        <el-form-item label="是否加班：" prop="is_overtime">
          <el-input v-model="form.model.is_overtime" clearable />
        </el-form-item>
        <el-form-item label="是否报到后售票：" prop="is_saleafterreport">
          <el-input v-model="form.model.is_saleafterreport" clearable />
        </el-form-item>
        <el-form-item label="是否实名制：" prop="is_realname">
          <el-input v-model="form.model.is_realname" clearable />
        </el-form-item>
        <el-form-item label="座位数：" prop="total_seat">
          <el-input v-model="form.model.total_seat" clearable />
        </el-form-item>
        <el-form-item label="已售出座位数：" prop="sold_seat">
          <el-input v-model="form.model.sold_seat" clearable />
        </el-form-item>
        <el-form-item label="携童数：" prop="take_child">
          <el-input v-model="form.model.take_child" clearable />
        </el-form-item>
        <el-form-item label="车次状态：" prop="status">
          <el-input v-model="form.model.status" clearable />
        </el-form-item>
        <el-form-item label="互售张数：" prop="interlink_quantity">
          <el-input v-model="form.model.interlink_quantity" clearable />
        </el-form-item>
        <el-form-item label="互联网张数：" prop="internet_quantity">
          <el-input v-model="form.model.internet_quantity" clearable />
        </el-form-item>
        <el-form-item label="备注：" prop="remark">
          <el-input v-model="form.model.remark" clearable />
        </el-form-item>
      </el-col>
    </el-row>
  </nm-form-dialog>
</template>
<script>
import { mixins } from 'netmodular-ui'

const { add, edit, update } = $api.dispatch.env_bus_Info

export default {
  mixins: [mixins.formSave],
  data() {
    return {
      title: '环境车次',
      actions: { add, edit, update },
      form: {
        model: {
          /** 日期 */
          bus_date: '',
          /** 班次号 */
          bus_id: '',
          /** 所属车站 */
          station_id: '',
          /** 线路 */
          route_id: '',
          /** 营运类别 */
          work_type: '',
          /** 营运方式 */
          work_way: '',
          /** 区域类别 */
          district_type: '',
          /** 车次类型 */
          bus_type: '',
          /** 发车时间 */
          start_time: '',
          /** 检票口 */
          check_gate: '',
          /** 发车位 */
          parking_space: '',
          /** 候车厅 */
          waitting_room: '',
          /** 滚动车辆循环时间 */
          scrollbus_check_time: '',
          /** 车辆编号 */
          vehicle_id: '',
          /** 车属公司 */
          transport_company_id: '',
          /** 是否本站专属车次 */
          is_proprietary: '',
          /** 是否加班 */
          is_overtime: '',
          /** 是否报到后售票 */
          is_saleafterreport: '',
          /** 是否实名制 */
          is_realname: '',
          /** 座位数 */
          total_seat: '',
          /** 已售出座位数 */
          sold_seat: '',
          /** 携童数 */
          take_child: '',
          /** 车次状态 */
          status: '',
          /** 互售张数 */
          interlink_quantity: '',
          /** 互联网张数 */
          internet_quantity: '',
          /** 备注 */
          remark: ''
        },
        rules: {}
      }
    }
  }
}
</script>
